import { request } from '@/network/request.js'
export function getArtFun (page = 1) {
  return request({
    url: '/getArticle.php',
    params: {
      num: 9,
      page
    }
  })
}

export function getInsFun (page = 1) {
  return request({
    url: '/getList.php',
    params: {
      num: 8,
      page
    }
  })
}

export function getNavFun () {
  return request({
    url: 'infoClass.php'
  })
}

export function getListCont (page = 1, cid = 47) {
  return request({
    url: '/getList.php',
    params: {
      page,
      cid
    }
  })
}

export function detailFun (id, cid, type) {
  return request({
    url: '/getDetail.php',
    params: {
      type,
      id,
      cid
    }
  })
}

export function searchFun (keyword) {
  return request({
    url: '/searchList.php',
    params: {
      keyword
    }
  })
}
